fix bug when do R package check