VW Jetta 2004 EPC light and Gas Pedal Fix

Replacing gas pedal on a 2004 Volkswagen Jetta because of the EPC light. It must've broke there are two sensors in the gas pedal for positioning sensors one checks the other. One must of went bad.