Add a Try around unsafe operation
Merge branch 'fix-ratio-divide'