Fix patterns