off by one: fixed