Check that the ground wire is securely attached. Also, if the engine uses a magnet sensor to trigger the spark, make sure it hasn’t come loose and gotten out of position. I’m not even sure that’s what they use, but if it’s like the others, the magnet has to pass directly past the switch or it fails to trigger a spark.