fix for Math.hypot