Fixed bug in swap: content mode was wrong