Fixed: bug of multiple empty write batches.