Corrected return of getAllRules

Now returns correct id and name.