fix a couple of bugs in the policies