fix copying reference docs in copy constructor