fixing bug in workflow task