fix exchange logic