fix bug: invalid port.