Fixes Undefined Offset Bug

Undefined Offset Bug when batch deleting from cloud storage

Fixes #323