fix bug in rotateLeft