Fix bad logic for max sets to make