Fix bug copy files