fixing bug with text addition when new nodes/links are added