Fix framework copying.