all, avoid issues for perfect square ratio and other related case

Authored by timotheegiet on Dec 13 2018, 1:23 PM.