fix bugs in preprocess