Fix crash when using url with parameters