Fixing bugs in Set::giveNodeList