fixing index file