Fix bug in RK pair construction.