fix r helper
fix r helper