Fixed a buffer overflow when rotating too much
Removed debug print