Fix incorrect deletion when exporting
Change to patch the missed deletions