fixed accelerometer orientation bug