fix minres index