Fix the case where there is no port.