fix a critical bug with loading the config