Fixing promises within `data.batch()`