fixed crash bug when respawning enemies before boss spawned