Fixed error caused when removing debug statements