Error fixed with policies and int in rules