fix bad assert
Merge pull request #25 from dimagi/case-rebuild

fix bad assert