Fixed bug, urls do not always end in html