fixed wf bug