fix bug when searching for url