fix require_relation