stash: fixed SWAP function.