jklew: Corrected scope of variable