Removed compiler warnings about copy constructor