Per @danielmewes, instead make new_max_els at least min_els.