Fix rotation bug

Change-Id: I1a72ed7855ab2ceb97ae464c53415670c52470c2