That wasn't an infinite loop

It just was a crappy code