fixed equality bug in policies