Fix dependencies in workqueue