fix buffer alloc bug in launch multi node jobs