fixes #3138 . Update statistics after operation is run and  before resp...

...onse is send to client