Fixed a bug with the config file