Fixed error in implementing batch mode in update function 7002.