Fixed a bug: avoid bogus tags on nodes moved forth and back.