Bugfix: correctly retrieve distributions when purging from cache