bug fix loop end will not traverse the loop start