fix case hierarchy
Merge pull request #237 from dimagi/hierarchy

fix case hierarchy