fix for #270