off-by-one in computing middle positions threw off colorer