attempt to fix a cache check bug