fixed entitlement priority function issue