fixed prime error