fix a bug in default config setup