fix merge issue

recover the functionality of loading record index