corrected index compilation