Fix invalid date message not showing