fix a serious bug, *STEP_END = STEP
cycle