Rotate bug fix