Fixed Rcpp error.