bug in port trying