fix caching of fragments