fix for #146