fix download url generation