Fix bug in url length