fix broken metrics config access.