Removing unmatched tag