fix bug in search time