fixing primes