fixed socialtree to work with restore