Remove composite and last pkey from attachments