Ok thank you for getting back to me, that's really helpful!
I will put it on the list of things to look into, I've heard people mention this problem a few times but I haven't managed to see it myself yet. It's a hard problem to find and because of the way I do the looping, I think it might be hard to fix too. Having said that, hopefully your answers will help point me in the right direction! :)