fix for #330