Math: Fix gcd about 0