Fixed a bug in config loading.