Fixed uninitialized batch in the bucket