Fixed the min_length filtering.