Fix issues with addNode