- Fix bug in swap.