Fixed the loop bug

Fixed the loop bug

issue A24Group/Triage#1148