Important fix to associate rules with users