bugfix in new metadata cache