Added segment offseet only in one place.