fixed duplicate port showing after update or copy