fix copying class with pointers as member

copying class with pointers as member when deleting them in the desctructor is danger zone.