Bug when guessing the previous step id, new keep it in a dedicated var