fixes primes