fix for #167