fixing the index file