Fix get rotation method for view