Damn you off-by-one errors!