fix copy file error