Fix an calculation error about the angle of the rotation animation