Fixed some R CMD CHECK warnings