fix warnings from R CMD check