fix for saving ValueTree data