fixing index redirect