Microwave door catch

The door will not stay closed. I removed the door and the front black cover to expose the spring, it was loose. I am not sure if there was a place on the slide that locks the door closed to hook to spring to, or if something else is broke. So I dont know if I just need to order the black slide piece or something else.
Thanks
Scott
sgwynn@strato.net