tweak to Node.makeroot()