max date set correctly.