fixed respawn when in on-demand mode