fix bugs for config.json