copyFile fixed