That was a bitch of an off-by-one bug