MANTA-85 fix logic for insert/delete variants