Fix problem with not saved setting for custom metrics