Fix minor typo: offset->length