fixing ports.