remove off-by-one from renderer