Correctly filter tags.