fix an error with max_split