of by one bug fix