Oven light does not go out when door closed

The Jenn-air oven light does not go out when door is closed. It only goes out when I push the door closed a little bit, but when I let go it goes on again. Right now I have a piece of aluminum foil in front of the switch so it goes out. Does anyone think the problem is the hinges?