fix for #304