Little bug in modulus statement which could mess up things when using
various modulus values with very big different primes.