Fixed to pass CRAN check.