fixing that stupid ass glitch