orientation bug fix