fix R