Fixing ports to be on a unique line