fixed gradient glitch