Change the port to be valid