fixed an infinite loop error that occurred when an event that reset the state occurs exactly at multistep initialisation start