untested fix to frame copying