fix config caching bug