Fix bug: ensure the title of the node is set if the title is changed.