Fix scanline problem.