Fix ports to the correct value