Fix a pattern match