minor fix

fix port attribute.
don't break merge with nil value