fix mean_ctr calcer