Fixed errors in WorkflowService