Fixed wrong typeing of work queue