fix inconsistent cases