Fixed copy constructor to include history