fixed a bug in preprocess_split