state transition and hero spawn fix