Leave Entitlement Logic Fix