fix multiple port opened