fixed some complains of R CMD check