fix for #227

@settinghead please review