fix deep_clone bug

fix if obj is a function, not need to clone, just return it not to clone it, which lead an bug in check_right.