fix bug with search time