scan fix preprocess