Fix root computation in compressed index.