fixed the flow control on batch updates