Your wire isn't hot enough. If it is solar charged, they can give a good zap the first time, but the second zap isn't anything, until it recharges. So one horse takes the zap, a second horse tries again and they are through.
You need better fencing. You need better neighbors too, but that isn't within your control as easily.