Some vehicles have been built with door latches which may not be to specification. An internal plastic pawl within the assembly may seize which results in the latch failing to function as designed preventing the door being securely shut.
Abhilfe: Recall affected vehicles and fit quality assured replacement door latches.