fixes average calculation problem of PerformanceEngine