fixing bug when adding nodes