fix cleanEdge bug(because out of steps & foundtarget happened at the
same time)