fix the None value issue in parts_preprocess