fixed bug in sendCoin