fixed _R being reloaded twice