fixed orientation bug.