Fixed the COPY command to copy attributes and handle the "target"