fix for #368