Fixed a bug with adding UDP ports.