fix remaining warnings in R CMD check