fixed issue with stats.Rmd