Fixed bugs in multi node setup.