possible bugfix for last_port_used creation fail