Fix copy patch mechanism.