* Fixed metrics task error on startup.