Fixed index file generation