Fixed a bug of LoadIndex