fix bug on single date