Fix enemy crashing game.