Fix default date not being set