Pushing a local var updates the global one

Please see this topic for the explanation of this behaviour: