Bug in port lookup