Fix copy patches