Fixed another problem with performance monitoring