fix a preprocess bug