fix scenario where there is no next step.