fix appendSegment code in pome and rdfstorew