New latch will not hold door shut

After purchasing part # WPL W10130694 and installing it. The door latch will not hold the catch devise and keep the door closed. It will click shut and then pop right off again. Do I need a different catch that is attached to the top of the washer to match the new handle latch assembly or is it defective?