Fix typo in variable reference

report variable was referenced out of its scope.