fix capturing inner lambda-case closure