I recently installed a few locks.
When doing so, one sometime has to face up with the lach having the wrong orientation. When that is the case it is necessary to open the lock and turn the latch around so the door can close properly.
This may be a bit tricky because of the spring mechanism. When not done properly the lock will make excessive noise every time it is turned.