Made the lambda statement more resistant to errors

Made the statement better