fix copy constructor miscount