fixed bug in lambda snippet