Fix off by 2 error in output.