fix for #227
fix for #227