fix bug for searchDate