bug fix #162