fix approx_avg