fixed off-by-one error
0.2.1