Fixes replication caching to recognize invisible items.