Fixed bug occurring when a URL was too long