fix resolving lambda capture