Door latch doesn't work

The latch on my upper door is in the locked position (the position it moves into when the oven is cleaning.) I can’t get it to stay in the normal position, so I can’t get the door to close all the way. Is there anything I can do besides replacing the whole door latch unit?