fix bug taking num machines from env