A few thoughts
If the pin in the cylinder doesn't line up with the hole in the ejector, it won't close.
If there is crud behind the ejector it won't close.
If you unscrewed the ejector with out supporting it with empty cases or snap caps ect., it may be bent and won't close.
Make sure it is screwed down all the way.
Make sure the rod isn't bent.