Resolve location of index correctly in bin file.