[R] Fixed Bug