Fixed a bug in event tasks.
Changed how port_name/number in interface_manager and active_interface_manager.