Fixed a bug in searching for URLs