fixed adding nodes