A forceps includes an end effector assembly with a first jaw having a tissue sealing surface and an electrode on the sealing surface, and a second jaw having a tissue sealing surface and an electrode on the sealing surface. The first jaw and the second jaw move between an open position and a closed position. The sealing surface of at least one of the first jaw and the second jaw has a flexible medial section and rigid lateral sections.