Fix typo in changelog
Use lexical scope
More liberal lexical scope

Variable value changes happen after function definitions is
reflected in the function call