[Bug fix] Fixes #538

Removing a tag from a record was affecting all records with the same tag.