Fixed malformed generated URL