fix error when the node has no topic