bug fix for search bar cursor