fix a bug about Preprocess method