Use offsets relative to top rather than bottom for stack refs