data rest: fix for save metadata on dataset