fixed count detail avarage bug