Fixed bug with exchanging.