Fix the index file