fixed a glitch