fixed R CMD check issues