fix for #381