Fixed incorrect port reading from config file.