fixed weird glitch