Fix bySegment metrics de-serialization