PIM-3343: fix metric value setter