Fix for avg_coin