bug fixed in searching time interval