fix issue #76 (R)