fix bug in TopSearchPanel