Fix for index reading bug.

-Reported by @java8964 and fixed here.
-Read all of the split from the index file.