Fixed the problem that could cause transitions to get stuck in place if a rotation started after the transition, and the transition completed before the rotation.