fix for #327