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