fix bugs with stats viz
Merge pull request #415 from dimagi/ofix

fix bugs with stats viz