Bug fix 3898. Updating index stats