Replaced misnamed local variable