Fix off by one length calciulation.