fix R to r