fix how FrameTrees are copied