[Bug fix] Removing a tag from a record was affecting all records with the same tag. Fixes #538