Found a glitch in the code