fix exchange bug