Fixed a bug in R.loader()