Dealt with empty location.port