Fixing import of user-defined metrics.