fix for invalid exchangeArray definition