Fix move/duplicate/delete modes not updating IDs properly