Fix a consitence issue about RAM and Disk index