Fixed variable name in anonymous function.