fix case index