Fixed a segfault in the COPY command.