fixed a PerformanceCounter issue