Fixed some minor bugs with the output of AdaptRotation.