fixed comparator in policy and typos