Fixed bug that searchbar can split with temrinal window.