Audio scrubbing looping in the waveform

R_Gol's icon

I created this patch from the book Electronic Music and Sound Design - Theory and Practice with Max & MSP - Volume 2.

I don't understand why when I loop the waveform the timeline cursor go beyond the limits I set when I loop the waveform.
any idea why ?

thanks

audio scrubbing.maxpat
Max Patch