fix for #326