Fixed bug in RScript7