fixed an error addressed by CRAN in submission #1