fixed a bug in pre-procssing