fixed a bug where the config file was not always read