Frames not showing correctly as the experiment goes


I coded a routine so that it presents my stimuli for 240 frames:

However, as the experiment goes, the stimuli is presented longer and longer…

What should I do about it?

I really tried all that I can do and I don’t see what could be the problem…!!!