fixed bug with nodeid vs mid