fixed empty port_list exception