Solve deepcopy issue.