Fixed the warnings showed by R CMD check