fixing little bug in default date