warning fix for CRAN submission