Fixed an orientation bug