Fixing incorrect local variable name