Fixed a bug in ShouldAutoRotate()