Path Fixes for R
Fix divide by zero