Typo on variable name

I'm guessing it should be m2 instead of m2w (which is undefined). At least the code runs now