Fix the copy kernel.