fix bug of deep copy