fix bugs about time constrain search