Added error basic correction for mismatched tags.