fixed error if is_closure doesnt exsists