Fixed misnamed local variable