Fix defining a closure inside other