fix for #1090

fix for #1090