Possible fix for not looping