Copy files correctly