fixes #3138 . Update istatistics after operation is run and before response is send to client