Fix wrong local variable name