Fixed glitch when a rotating device