[Fix] Switch around the if statement for enabling metrics