Fixes Undefined Offset Bug

Undefined Offset Bug when batch deleting from cloud storage

Fixes #323
Could you fix indent on these two lines to 2 spaces?