fix restore standard remote port on upgrades