fix bug for exchange