Fixed 'copy headers' operation