Penalties are not always applied to total time at the end of a race

In some cases, penalties against drivers are not properly applied at the end of a race, sometimes affecting the standings.