Fixed indexing errors for r_f[] and r_b[].