Fix handling of minimum date