fix case hierarchy

http://manage.dimagi.com/default.asp?124369