Add missing 'var' to local variable