Fixing bug with min_workers setting