fixing index