fix the bug of can't copy file.