The cursor doesn't follow with loop funtion

The Cursor stops at the end of the hook instead of looping back.
When you are in Hookpad the loop and cursor work together.