fix for #248