resolved bug in avg precision.