Fix bug in port string config.