Fix to read port properly.