Fixed div-by-zero error when fi_rate=0.
Merge branch 'inject_timing'