minor bug fixed
Merge remote-tracking branch 'R_scripts/master'