Remove valid tags from being added to errors in encapsulation