Fixed error on login screen with Metrics.