fix bug: lambda can't find variable