Fixed pipeline copying.