fixing R runtime reference