fixed deepcopy's bug