fixed socket issue when adding nodes