Fixed the bug where choosing materials with specific additional effects will cause the game to crash.