fix copy constructor snippet