bug fix in autocomplete and frequency sidebar