fixed some framing logic in segment eval