minor if case correction