fix some issue on config.