Correct off by one error