fix for #362