bug fix for #148