You wrote:
But unfortunately it doesn't work correct at the beginning, because the number of laps is zero in the first lap and before the first crossing of the start finish line.
So the patch thinks the drivers directly before the first crossing at the start/finish are the leaders. The result would be more changing of the focus than before.
Did you mean the second crossing of the start finish line? Not at the start itself, but at the end of the first lap. If yes then I understand.
Because if the leader is recolonized directly at the start when crossing the start finish line the first time, then it should be possible.