WMI error on Biztalk

From time to time I have found this error when opening the Biztalk management console: "A connection to Windows Management on \\.\ROOT\MicrosoftBizTalkServer cannot be established: Invalid namespace".

It can be solved executing "mofcomp" on the BTSWMISchemaXP.mof file found on the biztalk installation directory.