fix https://www.chiliproject.org/issues/1295 for chili 3.8.0
Merge pull request #61 from nhannguyen/chili

fix https://www.chiliproject.org/issues/1295 for chili 3.8.0