"End Cycle" light will not turn off

Replaced door latch sensor switch. Replaced timer. After you open door, the light should turn off. But the Light stays on & the machine will not advance to new wash cycle.