1.Fixed an issue while auto rotate that the angle may be invalid