Fixed error when serializing default config.