Fixed escaping lost when using lambdas

Escaping information was lost when using lambdas