some fix to the approx_count and approx_avg