parser: Fixed reference from global to local variable