Party defection before election