bug fix for #119