Fixed an off by one error, previously undiscovered