Bugfix in loading from cache.