Fixed bug when node selected and text is typed