fix min_df