FIX: wrong case index