Fix `keys` metric being zero