remove inactive ports on update