fixed upgrade dialog in all cases doing port change before upgrading