fix Rcpp gmm