fix for #4785

fix for #4785