Does the door lock from the inside when using the lever. If not the door isn’t closing into the latch far enough, so move latch outwards. Reference the lock barrel, it has a little sprung pin on the rear, that needs to locate in a corresponding hole in the lock hole.