fixing index of header