Fixed another bug in performance monitoring