fixed error "Application transferred too few scanlines"