fix attribute precedence in recipes