Fix exchange rate bug; other fixes.