Correctly check changed tags for comparison