fix for #285
see #172