Fixed index generation.