fixed some variables that was not unglobalized

I know I checked yesterday, but whatever.