Add missing 'var' for some local variables.