Warning correction from R CMD check