fix for #294