clean wf_context