fix deep_clone bug

fix if obj is a function, not need to clone, just return it not to clone it