fix rdoc and ri error