fixed bug with Port field