I figured out what was breaking the theme, It was a photoset. The problem was this particular photoset had one photo that didn’t have have a highres version. So, the set ended up short a photo, and i didnt account for that. Ended up with an infinite