Int bug

slightly different fix for #3071