Fix bug with space in url