Fixed R plugin issue