Fix files copying