fixed Orientation bug