Minor fix to rate programming code in Timer1