small bug in preprocess