fixed getCoins
fixed getCoins