Don't think the GOP gained seats, they just didn't lose the majority even though they lost seats.
Republicans WON 8 seats in the 2002 midterms