fix R reference