bug fix cache refreshing