fix node id generation for non hosted nodes