fix workflow_def ajax