src: fixed problem where the node did publish before it was started