Fixing minor bugs in config loading.