From Martin Regner: properly set the offset in the join/prune processing