Fix bug when searching for the first time in a browser