Fixed DeviceOrientation problems.