Bug fix : the enclosing should not be set when passing a value to a function or procedure