Fix patterns.