Fix: failed to detect invalid instances not already in cache