Fix bug with policies