fix api for workitem