review if you have a cursor and verify if have end loop condition.