fix task type in ws