fix problems with R CMD check