index mistake fixes