fixed deepcopy issue