Fixed warnings from R CMD Check