Fixed also a bug in the PerformanceMonitor