cran check error fixes