fixed a bug causing the enemies to be spawned twice