Fixing index file