fixing avg_ctr