Fix to name collision in correlations

in R code