Fix some scanline glitching