fix caching check.