Removes broken tags.