fixed a crash when the config file was empty