could be that microswitch, ally ( check if cavity light switches as you open and close door ) sometimes the hinge levers and operating arms affect – you should be able to hear the switch click from the front as you open and close the door . also worth checking the selector switch ( commutator )