fix on selection of port 0