I know what's wrong. The latch on the camera side is broken. If you try closing it a few more times and shake it a bit, the broken piece will fall out.
How old is your cam? Mine broke just last week, but didn't have the time to bring it in for repairs. BTW, how old is your cam? Seems like a common problem with the EOS 50.