small rotator code fix