Fix off-by-one error in guiguts input issue #156