fixed deepcopy bug in atom