fix R CMD check issues