fix index setting