Solved problem in util.clone and clone_function with _ENV variable