Fix rotation and offset.