fixed a bug with the URL used to generate the base string