Fix excess of the maximum date