Ah no, it’s your code. Sometimes you have to code in a slightly different way to avoid loop detection. Can you show the relavant part of your code?
This is 50x50 cubes:
Just a straight loop: