Fix bug in DoModI in setting results register