fix left rotate, right rotate not working