Be consistent on where we set tmp from in swap.