fix: bug in modular gcd due to wrong extension