When creating a version of an already versionned document.
The new version has a isLatestVersion=1 and the previous version is updated with isLatestVersion=0, so there is only one version marked with the last version flag.
The update of the previous version is not propagated to the ES index, as a result there are multiple versions of the document with isLatestVersion=1.
This should be fixed by reindexing the previous last version of the document.
Note that a reindex all fix the problem.