use list index properly in normalize_base_url