CFY-882 fix max_workers to return max and not min