fix the url being sent