Fixed bug for default date