fix URL generation TypeError (concatenation)