Fixed case_i to CASE_i everywhere
(I had missed some last time)