Bug fix if copy_files not used