Fixed a bug where the node links wouldn't disappear when removing a
node