fixed an error where files did not copy