Fix match controller in access rule, match uniqueId instead id

#2482