bug fix with spawner