Off by one error fixed :(