Fixed node deletion to delete surrounding links too