fixed scanline bug