ScanLine bug fix