fix incomplete copy resource