port had wrong type