Fix error in transactions. Give categories a count of reps invested and ...

...liquid