Fixed a minor bug with policy cache reset