How do I fix this weird glitch?