Fixed a bug if port_q['name'] is empty