Fix wrong case expression