fix bugs about the name of max and min in Rcpp