Fix implicitly deleted copy constructor error.