fixed issue with gcd sign

Review comment has been applied.