fix the bug when registering the nodemonitor (no information about node)