Fixes issue for switching between DeviceOrientation and DeviceMotion enabled device