fix multiple ports