Democrat Doug Jones’ upset victory in Alabama’s Senate race on Tuesday gives Democrats renewed hope of an electoral wave in the 2018 midterm elections, but it comes with a warning—a strangely shaped one. In much of the country, partisan and racial gerrymandering is so extreme that it could prevent Democrats from taking control of the House next year even if they win the congressional vote nationwide by a sizable margin.