Fix incorrect task dependencies.