Fixing batchDelete array referencing