fixed the glitch