Correct a pattern.