When you define [MATH]M,nxa[/MATH] you define it as a formula, that is recalculated every time its result is shown. So, the second time you see the second calculation using new lambdas. Try using eval() function: [MATH]M,nxa:eval(algorithm)[/MATH]
С уважением,
Михаил Каганский