fixed a bug in the index file