Fixes: #709, off by one error