fix small primes