Fixes RR algorithm.