fixes to *Rd