Sort addresse to keep it from changing
Fix infinite redirect when following links.