Add missing "var" keyword to avoid implicit global variable usage.

Fix for a small, accidentally discovered global variable leakage bug.