fixed the config bug