Fix accidentally non-local variables

I assume these two variables were intended to be local.