Fix a bug in the config loading