Fix worker_apply_changes to update the status of the case