fixed orientation bug