fix TransferAmount calculation