Add fix for gcd.