Attempt to fix orientations.