fix GCD