Fix proxy was not being set when launching the app

This isn't the right place to set this value. It should be done outside this callback immediately before this section so that it's only set once on initial startup.