fixed the case that there are 0 things to load in a batch not updating the callback function