fixed a bug where wrong node was being updated if selection changes while editing a node