fix profile generation for multi-node