fix R CMD check problems