fixed autocomplete after refresh in search.js and RightSidebar