fix case count