Fix: MAIN_AUTOFILL_DATE was broken in some cases.