fixing weird fade glitch