Fixing indexes.