fix nested lambda