Fix obvious bugs in accrue_rates