Fixed bug in RR