getCurrentStepNo does not search in the complete trajectory.