Fixed the auto setting of dates to be in the past.