fix r check warnings