fix current port selection when is using default protocol port