fixed crash when loading empty index files