fix orientation bug