Fix metrics reporting.