I have a problem with this task, it won't exit loop, what should I do?