bug with onchange event in searchbar