fix for #187