Fixed bug for unbound ports removal