Fixed error when the url  is passed by the options parameter.