Fixed small bug with collection caches