fix some warnings on R CMD check