fix pac missing port bug