Fixing a bug with the url of the GET request