fixed a bug with default config