Fix r_reg_next_diff (thanks defragger!)