fixed errors in lambda expressions