correcting index file