fix for #243
fix for #243