spawner bug fix