This fixes the horrible way that CmdCopy() used to work.