iterator first offset bug fix