Corrected errors in R check