Fixes reading the configuration file.